Fortisnmp monitoring -help

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
batchen
Posts: 24
Joined: Tue Jan 19, 2016 10:04 am

Re: Fortisnmp monitoring -help

Post by batchen »

tgriep wrote:Please run the following so we can get some debug information and post the output here.

Code: Select all

LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg --debug=log,base
ps -ef


here:


Code: Select all

root@localhost: ~#LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg --debug=log,base
root@localhost: ~#ps -ef
UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 Jan31 ?        00:00:02 /sbin/init
root         2     0  0 Jan31 ?        00:00:00 [kthreadd]
root         3     2  0 Jan31 ?        00:00:00 [migration/0]
root         4     2  0 Jan31 ?        00:00:00 [ksoftirqd/0]
root         5     2  0 Jan31 ?        00:00:00 [stopper/0]
root         6     2  0 Jan31 ?        00:00:00 [watchdog/0]
root         7     2  0 Jan31 ?        00:04:30 [events/0]
root         8     2  0 Jan31 ?        00:00:00 [events/0]
root         9     2  0 Jan31 ?        00:00:00 [events_long/0]
root        10     2  0 Jan31 ?        00:00:00 [events_power_ef]
root        11     2  0 Jan31 ?        00:00:00 [cgroup]
root        12     2  0 Jan31 ?        00:00:00 [khelper]
root        13     2  0 Jan31 ?        00:00:00 [netns]
root        14     2  0 Jan31 ?        00:00:00 [async/mgr]
root        15     2  0 Jan31 ?        00:00:00 [pm]
root        16     2  0 Jan31 ?        00:00:02 [sync_supers]
root        17     2  0 Jan31 ?        00:00:02 [bdi-default]
root        18     2  0 Jan31 ?        00:00:00 [kintegrityd/0]
root        19     2  0 Jan31 ?        00:00:23 [kblockd/0]
root        20     2  0 Jan31 ?        00:00:00 [kacpid]
root        21     2  0 Jan31 ?        00:00:00 [kacpi_notify]
root        22     2  0 Jan31 ?        00:00:00 [kacpi_hotplug]
root        23     2  0 Jan31 ?        00:00:00 [ata_aux]
root        24     2  0 Jan31 ?        00:00:00 [ata_sff/0]
root        25     2  0 Jan31 ?        00:00:00 [ksuspend_usbd]
root        26     2  0 Jan31 ?        00:00:00 [khubd]
root        27     2  0 Jan31 ?        00:00:00 [kseriod]
root        28     2  0 Jan31 ?        00:00:00 [md/0]
root        29     2  0 Jan31 ?        00:00:00 [md_misc/0]
root        30     2  0 Jan31 ?        00:00:00 [linkwatch]
root        32     2  0 Jan31 ?        00:00:00 [khungtaskd]
root        33     2  0 Jan31 ?        00:00:00 [kswapd0]
root        34     2  0 Jan31 ?        00:00:00 [ksmd]
root        35     2  0 Jan31 ?        00:00:02 [khugepaged]
root        36     2  0 Jan31 ?        00:00:00 [aio/0]
root        37     2  0 Jan31 ?        00:00:00 [crypto/0]
root        44     2  0 Jan31 ?        00:00:00 [kthrotld/0]
root        45     2  0 Jan31 ?        00:00:00 [pciehpd]
root        47     2  0 Jan31 ?        00:00:00 [kpsmoused]
root        48     2  0 Jan31 ?        00:00:00 [usbhid_resumer]
root        49     2  0 Jan31 ?        00:00:00 [deferwq]
root        82     2  0 Jan31 ?        00:00:00 [kdmremove]
root        83     2  0 Jan31 ?        00:00:00 [kstriped]
root       184     2  0 Jan31 ?        00:00:00 [scsi_eh_0]
root       187     2  0 Jan31 ?        00:00:00 [scsi_eh_1]
root       199     2  0 Jan31 ?        00:00:11 [mpt_poll_0]
root       200     2  0 Jan31 ?        00:00:00 [mpt/0]
root       201     2  0 Jan31 ?        00:00:00 [scsi_eh_2]
root       303     2  0 Jan31 ?        00:00:00 [kdmflush]
root       305     2  0 Jan31 ?        00:00:00 [kdmflush]
root       371     2  0 Jan31 ?        00:03:13 [jbd2/dm-0-8]
root       372     2  0 Jan31 ?        00:00:00 [ext4-dio-unwrit]
root       464     1  0 Jan31 ?        00:00:00 /sbin/udevd -d
root       480     2  0 Jan31 ?        00:00:30 [flush-253:0]
root       608     2  0 Jan31 ?        00:00:12 [vmmemctl]
apache     722  1666  0 Feb07 ?        00:00:00 /usr/sbin/httpd
apache     723  1666  0 Feb07 ?        00:00:00 /usr/sbin/httpd
apache     724  1666  0 Feb07 ?        00:00:00 /usr/sbin/httpd
apache     725  1666  0 Feb07 ?        00:00:00 /usr/sbin/httpd
apache     726  1666  0 Feb07 ?        00:00:00 /usr/sbin/httpd
apache     727  1666  0 Feb07 ?        00:00:00 /usr/sbin/httpd
apache     728  1666  0 Feb07 ?        00:00:00 /usr/sbin/httpd
apache     729  1666  0 Feb07 ?        00:00:00 /usr/sbin/httpd
root       752   464  0 Jan31 ?        00:00:00 /sbin/udevd -d
root       785     2  0 Jan31 ?        00:00:00 [jbd2/sda1-8]
root       786     2  0 Jan31 ?        00:00:00 [ext4-dio-unwrit]
root       880     2  0 Jan31 ?        00:00:00 [kauditd]
root      1123     1  0 Jan31 ?        00:00:03 auditd
root      1157     1  0 Jan31 ?        00:00:02 /sbin/rsyslogd -i /var/run/syslogd.pid -c 5
rpc       1208     1  0 Jan31 ?        00:00:00 rpcbind
rpcuser   1230     1  0 Jan31 ?        00:00:00 rpc.statd
dbus      1265     1  0 Jan31 ?        00:00:00 dbus-daemon --system
root      1286     1  0 Jan31 ?        00:00:00 cupsd -C /etc/cups/cupsd.conf
root      1318     1  0 Jan31 ?        00:00:00 /usr/sbin/acpid
68        1330     1  0 Jan31 ?        00:00:03 hald
root      1331  1330  0 Jan31 ?        00:00:00 hald-runner
root      1363  1331  0 Jan31 ?        00:00:00 hald-addon-input: Listening on /dev/input/event2 /dev/input/event0
68        1373  1331  0 Jan31 ?        00:00:00 hald-addon-acpi: listening on acpid socket /var/run/acpid.socket
root      1397     1  0 Jan31 ?        00:00:05 automount --pid-file /var/run/autofs.pid
root      1507     1  0 Jan31 ?        00:00:00 /usr/sbin/mcelog --daemon
root      1519     1  0 Jan31 ?        00:01:22 /usr/sbin/snmpd -LS0-6d -Lf /dev/null -p /var/run/snmpd.pid
root      1536     1  0 Jan31 ?        00:00:01 /usr/sbin/sshd
nrpe      1547     1  0 Jan31 ?        00:00:02 /usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -d
root      1626     1  0 Jan31 ?        00:00:04 /usr/libexec/postfix/master
postfix   1637  1626  0 Jan31 ?        00:00:00 qmgr -l -t fifo -u
root      1655     1  0 Jan31 ?        00:00:11 /usr/sbin/abrtd
root      1666     1  0 Jan31 ?        00:00:20 /usr/sbin/httpd
root      1678     1  0 Jan31 ?        00:00:03 crond
root      1693     1  0 Jan31 ?        00:00:00 /usr/sbin/atd
root      1710     1  0 Jan31 ?        00:00:00 /usr/sbin/certmonger -S -p /var/run/certmonger.pid
root      1737     1  0 Jan31 tty1     00:00:00 /sbin/mingetty /dev/tty1
root      1739     1  0 Jan31 tty2     00:00:00 /sbin/mingetty /dev/tty2
root      1743     1  0 Jan31 tty3     00:00:00 /sbin/mingetty /dev/tty3
root      1745   464  0 Jan31 ?        00:00:00 /sbin/udevd -d
root      1747     1  0 Jan31 tty4     00:00:00 /sbin/mingetty /dev/tty4
root      1751     1  0 Jan31 tty5     00:00:00 /sbin/mingetty /dev/tty5
root      1755     1  0 Jan31 tty6     00:00:00 /sbin/mingetty /dev/tty6
root      1812     1  0 Jan31 ?        00:00:13 /usr/sbin/snmptrapd -A -Lf /var/log/snmptrapd.log -p /var/run/snmptrapd.pid
nagios    8198     1  0 Feb08 ?        00:00:48 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios    8200  8198  0 Feb08 ?        00:00:03 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios    8201  8198  0 Feb08 ?        00:00:03 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios    8202  8198  0 Feb08 ?        00:00:02 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios    8203  8198  0 Feb08 ?        00:00:02 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios    8204  8198  0 Feb08 ?        00:00:10 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
apache    8556  1666  0 Feb08 ?        00:00:00 /usr/sbin/httpd
apache    8597  1666  0 Feb08 ?        00:00:00 /usr/sbin/httpd
postfix  19814  1626  0 02:15 ?        00:00:00 pickup -l -t fifo -u
postfix  20592  1626  0 02:48 ?        00:00:00 smtpd -n smtp -t inet -u -s 2
root     20601  1536  0 02:49 ?        00:00:00 sshd: root@pts/0 
root     20605 20601  0 02:49 pts/0    00:00:00 -bash
root     20641 20605  0 02:49 pts/0    00:00:00 ps -ef
apache   23072  1666  0 Feb10 ?        00:00:00 /usr/sbin/httpd
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Fortisnmp monitoring -help

Post by tgriep »

Running this command should of produced a lot of output. Can you run it again?

Code: Select all

LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg --debug=log,base
Also, run the following and post the output.

Code: Select all

ls -l /usr/bin/mrtg
which mrtg
ls -l /etc/mrtg
Thanks
Be sure to check out our Knowledgebase for helpful articles and solutions!
batchen
Posts: 24
Joined: Tue Jan 19, 2016 10:04 am

Re: Fortisnmp monitoring -help

Post by batchen »

tgriep wrote:Running this command should of produced a lot of output. Can you run it again?

Code: Select all

LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg --debug=log,base
Also, run the following and post the output.

Code: Select all

ls -l /usr/bin/mrtg
which mrtg
ls -l /etc/mrtg
Thanks

Hello,

this line does nothing : LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg --debug=log,base
no output after i run it.

Code: Select all

root@localhost: ~#ls -l /usr/bin/mrtg
-rwxr-xr-x 1 root root 0 Jan 19 14:58 /usr/bin/mrtg

Code: Select all

root@localhost: ~#which mrtg
/usr/bin/mrtg

Code: Select all

root@localhost: ~#ls -l /etc/mrtg
total 36
-rw-r--r--. 1 root root     0 Jan 19 04:13 mrtg_252.cfg_l
-rwxr-xr-x  1 root root 33439 Feb  2 03:13 mrtg.cfg
-rw-r--r--. 1 root root     0 Jan 19 11:36 mrtg.ok
-rwxr-xr-x. 1 root root     0 Jan 19 04:09 mymrtg.cfg
-rw-r--r--. 1 root root     0 Jan 19 13:20 mymrtg.cfg_l
thanks.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Fortisnmp monitoring -help

Post by tgriep »

The output of
ls -l /usr/bin/mrtg
-rwxr-xr-x 1 root root 0 Jan 19 14:58 /usr/bin/mrtg
Shows that the file is zero bytes. Something happened to do that.
If you reinstall mrtg on that system, that should fix the issue you are having.
Be sure to check out our Knowledgebase for helpful articles and solutions!
batchen
Posts: 24
Joined: Tue Jan 19, 2016 10:04 am

Re: Fortisnmp monitoring -help

Post by batchen »

tgriep wrote:The output of
ls -l /usr/bin/mrtg
-rwxr-xr-x 1 root root 0 Jan 19 14:58 /usr/bin/mrtg
Shows that the file is zero bytes. Something happened to do that.
If you reinstall mrtg on that system, that should fix the issue you are having.

ok.. ill try again and update here.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Fortisnmp monitoring -help

Post by rkennedy »

Sounds good - let us know the result.
Former Nagios Employee
batchen
Posts: 24
Joined: Tue Jan 19, 2016 10:04 am

Re: Fortisnmp monitoring -help

Post by batchen »

ok so i reinstall it and set it like that :


define command{
command_name check_mrtg
command_line $USER1$/check_mrtg -F /var/www/mrtg/172.10.170.99_wan1.log -w 5000 -c 15000 -v 2
}


it is working but i see Critical notify.
the thing that i am missing is what does it measure ? what 5000 or 15000 mean? network packets?

the notify i get in nagios :""Avg. value = 209991 ""

thanks.
batchen
Posts: 24
Joined: Tue Jan 19, 2016 10:04 am

Re: Fortisnmp monitoring -help

Post by batchen »

well never mind i understand it stands for kilobyts.
anyway i see that i used check_mrtggrafe and here im using check_mrtg and now it works. - so maybe this was the sulotion

Thanks.-> solved
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Fortisnmp monitoring -help

Post by rkennedy »

Nice to see this resolved!

I'll go ahead and close this thread out, feel free to open a new one if you need further assistance in the future.
Former Nagios Employee
Locked