Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
Majed
produces:
Argument "noSuchObject" isn't numeric in subtraction (-) at ./sgichk_vpn_lics.pl line 271.
Argument "noSuchObject" isn't numeric in subtraction (-) at ./sgichk_vpn_lics.pl line 271.
Argument "noSuchObject" isn't numeric in division (/) at ./sgichk_vpn_lics.pl line 274.
Illegal division by zero at ./sgichk_vpn_lics.pl line 274.
snmpwalk: USM generic error
./check_cisco_ntp.sh: line 64: [: !=: unary operator expected
snmpwalk: USM generic error
./check_cisco_ntp.sh: line 64: [: !=: unary operator expected
.1.3.6.1.4.1.9.9.168.1.2.1.1.2.: Unknown Object Identifier (Sub-id not found: enterprises -> )
./check_cisco_ntp.sh: line 64: [: !=: unary operator expected
.1.3.6.1.4.1.9.9.168.1.2.1.1.3.: Unknown Object Identifier (Sub-id not found: enterprises -> )
.1.3.6.1.4.1.9.9.168.1.2.1.1.4.: Unknown Object Identifier (Sub-id not found: enterprises -> )
./check_cisco_ntp.sh: line 64: [: !=: unary operator expected
.1.3.6.1.4.1.9.9.168.1.2.1.1.8.: Unknown Object Identifier (Sub-id not found: enterprises -> )
./check_cisco_ntp.sh: line 64: [: !=: unary operator expected
.1.3.6.1.4.1.9.9.168.1.2.1.1.21.: Unknown Object Identifier (Sub-id not found: enterprises -> )
./check_cisco_ntp.sh: line 64: [: !=: unary operator expected
Unknown - Node status : noWarning | ok=0
Still I get the error:
./check_squid2.pl -H 10.0.0.2 -p 80
Use of uninitialized value in sprintf at /usr/lib/perl5/site_perl/5.18.2/Monitoring/Plugin/Performance.pm line 67.
Use of uninitialized value in sprintf at /usr/lib/perl5/site_perl/5.18.2/Monitoring/Plugin/Performance.pm line 67.
Use of uninitialized value in sprintf at /usr/lib/perl5/site_perl/5.18.2/Monitoring/Plugin/Performance.pm line 67.
Use of uninitialized value in sprintf at /usr/lib/perl5/site_perl/5.18.2/Monitoring/Plugin/Performance.pm line 67.
Use of uninitialized value in sprintf at /usr/lib/perl5/site_perl/5.18.2/Monitoring/Plugin/Performance.pm line 67.
Use of uninitialized value in sprintf at /usr/lib/perl5/site_perl/5.18.2/Monitoring/Plugin/Performance.pm line 67.
SQUID2 OK - Squid have clients and ICP requests queued | 'HTTP requests'=c;; 'sent ICP requests'=c;; 'received ICP requests'=c;;
squid version 4
who wants to fix this?
To make it work, do what was mentioned above and add the nagios ip to the tacacs server, then it will result in authentication ok.
in nagios it nagged about utils.pm not present. to fix this change the lib line in the script to point to utils.pm folder which should be that of the plugin.
sudo needs to be installed.
tried 2 other mtr plugins to no nice results.
The problem is that graphs produced are empty, or is that expected?
The script should return a single piece of performance data - Packet loss expressed as a percentage.
If the script is not working as needed, please email me and I will help.
./check_mtr:54:in `run_mtr': undefined method `captures' for nil:NilClass (NoMethodError)
from ./check_mtr:50:in `each'
from ./check_mtr:50:in `run_mtr'
from ./check_mtr:11:in `initialize'
from ./check_mtr:136:in `new'
from ./check_mtr:136
there is a bug in the script. i ran it under latest ubuntu after installing ruby.
if you get the error "Permission to perform this operation was denied." the set Permissions on ESX (i) check. The created user must be in the group users and be placed under Permissions to Read Only.
if you get :
SSL_verify_mode of SSL_VERIFY_NONE for client is depreciated!
then #perl -MCPAN -e shell
#install GAAS/libwww-perl-5.837.tar.gz
#install GAAS/Net-HTTP-6.03.tar.gz
information got from the forum :
http://communities.vmware.com/message/2202177
./check_snmp_memory.txt -H 172.16.1.100 -C snmp -w 80 -c 90
./check_snmp_memory.txt: line 123: /usr/bin/bc: No such file or directory
./check_snmp_memory.txt: line 123: /usr/bin/bc: No such file or directory
./check_snmp_memory.txt: line 123: /usr/bin/bc: No such file or directory
./check_snmp_memory.txt: line 123: /usr/bin/bc: No such file or directory
Memory usage : Go used for a total of Go (92%), SWAP usage : Go used for a total of Go (45%)| total=12873891840B;10299113472;11586502656;0 used=11957960704B;0;0;0 swap=12575440896B;0;0;0 buffer=0B;0;0;0 cache=0B;0;0;0
This error indicates that the command bc was not found.
- yum install bc
- whereis bc
Regards.
but i have no idea if the errors are actually 0 on my hp procurve switch
1. Emerge python
2. Download pywbem-0.7.0.tar.gz from http://sourceforge.net/projects/pywbem/files/pywbem/pywbem-0.7/
3. tar –xvf pywbem-0.7.0.tar.gz
4. cd pywbem-0.7.0.tar.gz
5. python setup.py build
6. python setup.py install
7. to test pywbem : $ python
Python 2.6.6 (r266:84292, Sep 14 2011, 06:53:15)
[GCC 4.3.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pywbem
>>>
8. srvmon-Bellakt plugins # ./check_esx_wbem.py https://10.1.1.xxx:5989 root password
if you get the following error (i was testing on a virtual machine)
Traceback (most recent call last):
File "./check_esx_wbem.py", line 75, in
instance_list = wbemclient.EnumerateInstances(classe)
File "/usr/lib/python2.6/site-packages/pywbem/cim_operations.py", line 404, in EnumerateInstances
**params)
File "/usr/lib/python2.6/site-packages/pywbem/cim_operations.py", line 219, in imethodcall
raise CIMError(code, tt[1]['DESCRIPTION'])
pywbem.cim_operations.CIMError: (6, u'The requested object could not be found')
9. to remove this error comment out memory (# 'CIM_Memory',)
OK : No PFA/S.M.A.R.T errors detected
here how i set it up:
1. Copy smartpfa.vbs into nsclient directory into scripts folder
2. Paste the following line into nsclient.ini file in the [wrapped scripts] sectioncheck_smartpfa=smartpfa.vbs /nologo /T:60
3. Restart nscleint in cmd type: net stop nsclientpp then net start nsclientpp
4. In nagios define the command $USER1$/check_nrpe_smart -H $HOSTADDRESS$ -c check_smartpfa
5. In services define: define service{
use generic-service
host_name myworkstation
service_description nrpe smart
check_command check_nrpe_smart
}
but i wish the -f flag could be used along side the -u flag so that both free and used memory would be displayed in nagios.
if (!defined($number)) { $number = 0; }
if ($interface eq 'megaraid'.",".$number or $interface eq 'scsi'){
so when i run:
./check_smart -i ata -d /dev/sda
i get:
OK: no SMART errors detected|Raw_Read_Error_Rate=0 Spin_Up_Time=3175 Start_Stop_Count=0 Reallocated_Sector_Ct=0 Seek_Error_Rate=0 Power_On_Hours=30537 Spin_Retry_Count=0 Calibration_Retry_Count=0 Power_Cycle_Count=37 Power-Off_Retract_Count=25 Load_Cycle_Count=37 Temperature_Celsius=42 Reallocated_Event_Count=0 Current_Pending_Sector=0 Offline_Uncorrectable=0 UDMA_CRC_Error_Count=0 Multi_Zone_Error_Rate=0
but then when i define it in nrpe as:
command[check_smart]=/usr/local/nagios/libexec/check_smart -i ata -d /dev/sda
and in nagios as:
define service{
use local-service
host_name storage
service_description smart WD
check_command check_nrpe!check_smart!
notifications_enabled 1
i get as output in nagios:
critical: NRPE: Unable to read output
anyone had it work through nrpe?
at first it gave me big problems such as an error like this:
Can't locate Net/FTPSSL.pm in @INC (@INC contains: /etc/perl /usr/lib/perl5/vendor_perl/5.8.8/i686-linux
so i: #perl -MCPAN -e shell
and installed Net::FTPSSL by issuing the command install Net::FTPSSL and it took over an hour to install because it had lots of dependencies and many connection refused errors, but it worked great in the end here is the nagios output:
FTP OK - 0.035 second response time on port 21 [220 (vsFTPd 2.3.4)]
OK Domain=[PLG] OS=[Unix] Server=[Samba 3.4.12]
had to use another plugin to check specific shares.
example:
./check_smb_share -H 10.1.1.11 -s install
where install is the name of the folder.
/usr/bin/perl $USER1$/check_snmp_netint.pl -H 10.1.1.94 -C public -n Realtek -O 1.3.6.1.2.1.2.2.1.2
output: unknown 2 warning levels for bandwidth checks
I've not tested windows but others say it works. In above error, its saying that you did not specify warning and critical thresholds, you can add -w '0,0' -c '0,0' if you don't care to set thresholds.
Please do not rate plugins as"disappointing" if you do not read documentation and do not follow upon fairly descriptive errors. Because of you the rating was lowered by at least one full star - most rated this plugin as 5.
Also in general this plugin with its many features is not for novice nagios users. Those with extensive experience who are looking for a really good network interface check plugin understand how much it really offers.
define command{
command_name check_speedfan
command_line /usr/bin/perl $USER1$/check_sfan.pl $ARG1$ $ARG2$ $ARG3$ $ARG4$ $ARG5$ $ARG6$
}
and service as:
define service{
use generic-service
host_name myworkstation
service_description cpu temperature 2
check_command check_speedfan!temp!10.1.1.29!test!5!"x>40||x45||x}
if you are running win 2003 64bit then don't do my mistake and just run injector.exe instead of speedfan.exe so it communicates with the snmp software mentioned by the author (bastart)
./check_db_record_count.txt[63]: .: ./utils.sh: cannot open [No such file or directory]
[root@orcl libexec]# ./DbCheck.java -H 10.1.1.247 -s orc1
import: unable to open X server `'.
import: unable to open X server `'.
import: unable to open X server `'.
import: unable to open X server `'.
import: unable to open X server `'.
import: unable to open X server `'.
import: unable to open X server `'.
import: unable to open X server `'.
import: unable to open X server `'.
./DbCheck.java: line 12: public: command not found
./DbCheck.java: line 15: syntax error near unexpected token `('
./DbCheck.java: line 15: ` public DbCheck()'
srvmonm plugins # ./check_oracle.pl
./check_oracle.pl: line 9: use: command not found
./check_oracle.pl: line 10: use: command not found
./check_oracle.pl: line 11: use: command not found
./check_oracle.pl: line 13: our: command not found
./check_oracle.pl: line 29: syntax error near unexpected token `('
./check_oracle.pl: line 29: `our %status_text = ('
It works. Maybe you should do something with line-endings. This plugin is written for Oracle checks on Windows systems and it will also work on Unix systems after having line endings converted.
I'd be happy to have a crack at making it work on gentoo if you have a test box available :)
Bug corrected in perfdata for pnp in 2.3.6. Can you retry with this new release please.
gives output on redhat but error on command line 118 and several others on gentoo,
works through nrpe and draws graphs on pnp4nagios